/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package frm.billingAndPaymentProcessing.managedbean;

import frm.billingAndPaymentProcessing.entity.InvoiceEntity;
import frm.billingAndPaymentProcessing.entity.ReceiptEntity;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;
import javax.faces.event.PhaseEvent;

/**
 *
 * @author xhx
 */
@ManagedBean
@ViewScoped
public class ReceiptCreationResultManagedBean {
private ReceiptEntity receipt;
    /** Creates a new instance of DisplayReceiptCreationResult */
    public ReceiptCreationResultManagedBean() {
    }
    public void initView(PhaseEvent event){
         if (receipt == null) {
            receipt = (ReceiptEntity) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("receipt");
        }
         
    }

    public ReceiptEntity getReceipt() {
        return receipt;
    }

    public void setReceipt(ReceiptEntity receipt) {
        this.receipt = receipt;
    }
}
